# coding: utf-8
from enum import Enum

from qfluentwidgets import StyleSheetBase, Theme, isDarkTheme, qconfig
from .setting import QSS_DIR


class StyleSheet(StyleSheetBase, Enum):
    """ Style sheet  """

    SETTING_INTERFACE = "setting_interface"

    def path(self, theme=Theme.AUTO):
        theme = qconfig.theme if theme == Theme.AUTO else theme
        # return (QSS_DIR / f"{theme.value.lower()}/{self.value}.css").as_posix()
        return f':/edge-tts/qss/{theme.value.lower()}/{self.value}.css'
